package com.quan.system.service.impl;

import java.io.Serializable;

import org.springframework.stereotype.Service;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.quan.common.core.MyBaseServiceImpl;
import com.quan.system.entity.SystemUserRole;
import com.quan.system.mapper.SystemUserRoleMapper;
import com.quan.system.service.SystemUserRoleService;

/**
 * <p>
 * 系统-用户与角色关联 服务实现类
 * </p>
 *
 * @author 杨浩泉
 * @since 2019-06-06
 */
@Service
public class SystemUserRoleServiceImpl extends MyBaseServiceImpl<SystemUserRoleMapper, SystemUserRole> implements SystemUserRoleService {

	@Override
	public void deleteByUserId(Serializable userId) {
		QueryWrapper<SystemUserRole> queryWrapper = new QueryWrapper<SystemUserRole>();
		queryWrapper.eq("user_id", userId);
		
		super.remove(queryWrapper) ;
	}

}
